/*  BEGIN_FILE_HDR
******************************************Copyright(C)*****************************************
*
*                                       YKXH  Technology
*
***********************************File Info***************************************************
*   File Name       @: Dcm_Lcfg.c
************************************************************************************************
*   Project/Product @: DCM
*   Title           @: 
*   Author          @: zhongliang.Yang
************************************************************************************************
*   Description     @: 
*
************************************************************************************************
*   Limitations     @: None
*
************************************************************************************************
*
************************************************************************************************
*   Revision History:
*
*   Version     Date          Initials           CR#         Descriptions
*   --------    -----------   ----------------   --------    -----------------------
*   1.0         2018/05/29    zhongliang.yang    N/A         Original 
*   1.1         xxxx/xx/xx    xxxxx              N/A         xxxxxxxx 
* 
************************************************************************************************
* END_FILE_HDR*/

/**************************************************************************************************
* Include files
**************************************************************************************************/
#include "Dcm_Types.h"
#include "App_Dcm.h"

CONST(Dcm_DspNonDefaultSessionS3ServerType, DCM_VARIABLE) gDcmDspNonDefaultSessionS3Server=5000;/*Unit:ms*/
CONST(DcmDspSessionRow, DCM_VARIABLE) gDcmDspSessionRow[KIND_OF_SESSION]=
{
    {DCM_NO_BOOT, DCM_SESSION_DEFAULTSESSION                   ,50u,5000u},
    {DCM_NO_BOOT, DCM_SESSION_PROGRAMMINGSESSION                   ,50u,5000u},
    {DCM_NO_BOOT, DCM_SESSION_EXTENDEDDIAGNOSTICSESSION                   ,50u,5000u}
};
#if(DCM_SERVICE_27_ENABLED==STD_ON)
CONST(DcmDspSecurityRow, DCM_VARIABLE)  gDcmDspSecurityRow[KIND_OF_SECURITY_LEVEL]=
{
    {10000u,10000u,4u,DCM_SEC_LEV_L1, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L2, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L3, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L4, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L5, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L6, 0x3u,4u},
    {10000u,10000u,4u,DCM_SEC_LEV_L7, 0x3u,4u}
};
#endif

/* For 0x22 */
#if(DCM_SERVICE_22_ENABLED==STD_ON)
#if(DCM_SERVICE_22_COMBINED_DID==STD_ON)
CONST(Dcm_DspMaxDidToReadType, DCM_VARIABLE) DcmDspMaxDidToRead=44u;
#else
CONST(Dcm_DspMaxDidToReadType, DCM_VARIABLE) DcmDspMaxDidToRead=1u;
#endif
#endif

/* 0x22 */
#if(DCM_SERVICE_22_ENABLED==STD_ON)
CONST(Dcm_22_ServiceInfoType, DCM_VARIABLE)   gDcmDsdSubService_22[NUMBER_OF_READ_DID]=  
{
	{0xFFFEu,1u,16u,  App_Read0xFFFE,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xFFFDu,1u,12u,  App_Read0xFFFD,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xFFFCu,1u,10u,  App_Read0xFFFC,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xFFFBu,1u,23u,  App_Read0xFFFB,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xFFFAu,1u,35u,  App_Read0xFFFA,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xF184u,1u,10u,  App_Read0xF184,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF15Bu,1u,9u,   App_Read0xF15B,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF18Au,1u,10u,  App_Read0xF18A,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF18Bu,1u,04u,  App_Read0xF18B,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF19Du,1u,4u,  App_Read0xF19D,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF113u,1u,10u,  App_Read0xF113,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF198u,1u,16u,  App_Read0xF198,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF192u,1u,13u,   App_Read0xF192,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF194u,1u,13u,   App_Read0xF194,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF18Cu,1u,7u,  App_Read0xF18C,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF190u,1u,17u,  App_Read0xF190,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF187u,1u,11u,   App_Read0xF187,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF020u,1u,1u,   App_Read0xF020,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF021u,1u,1u,   App_Read0xF021,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF022u,1u,1u,   App_Read0xF022,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF023u,1u,2u,   App_Read0xF023,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF024u,1u,2u,   App_Read0xF024,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF025u,1u,2u,   App_Read0xF025,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF026u,1u,1u,   App_Read0xF026,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF027u,1u,1u,   App_Read0xF027,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF028u,1u,1u,   App_Read0xF028,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF029u,1u,1u,   App_Read0xF029,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF030u,1u,1u,   App_Read0xF030,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF031u,1u,1u,   App_Read0xF031,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF032u,1u,1u,   App_Read0xF032,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF033u,1u,1u,   App_Read0xF033,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF034u,1u,1u,   App_Read0xF034,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF035u,1u,2u,   App_Read0xF035,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF036u,1u,2u,   App_Read0xF036,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF037u,1u,2u,   App_Read0xF037,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF038u,1u,2u,   App_Read0xF038,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xF039u,1u,1u,   App_Read0xF039,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF040u,1u,2u,   App_Read0xF040,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF041u,1u,2u,   App_Read0xF041,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF042u,1u,2u,   App_Read0xF042,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF043u,1u,1u,   App_Read0xF043,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF044u,1u,1u,   App_Read0xF044,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF045u,1u,1u,   App_Read0xF045,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF046u,1u,1u,   App_Read0xF046,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF047u,1u,1u,   App_Read0xF047,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF048u,1u,1u,   App_Read0xF048,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF049u,1u,1u,   App_Read0xF049,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF050u,1u,1u,   App_Read0xF050,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF051u,1u,1u,   App_Read0xF051,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF052u,1u,1u,   App_Read0xF052,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF053u,1u,1u,   App_Read0xF053,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF054u,1u,1u,   App_Read0xF054,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF055u,1u,1u,   App_Read0xF055,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF056u,1u,1u,   App_Read0xF056,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},//PHYSICAL_REQ_SUPPORTED},
	{0xF057u,1u,1u,   App_Read0xF057,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xF058u,1u,1u,   App_Read0xF058,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xF188u,1u,8u,   App_Read0xF188,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
	{0xF191u,1u,8u,   App_Read0xF191,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),  (DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}, //PHYSICAL_REQ_SUPPORTED},
};
#endif

#if((DCM_SERVICE_23_ENABLED==STD_ON)||(DCM_SERVICE_3D_ENABLED==STD_ON))
/* For 0x23,0x3D */
CONST(uint8, DCM_VARIABLE)  gMemoryAddressFormat=2;
CONST(uint8, DCM_VARIABLE) gMemorySizeFormat=1;
#endif
/* 0x23 */
#if(DCM_SERVICE_23_ENABLED==STD_ON)
CONST(DcmDspReadMemoryRangeInfo, DCM_VARIABLE)   gDcmDspReadMemoryRangeInfo_23[NUMBER_OF_READ_ADDRESS_SEG]=
{
{0,0,0,0} ,

};
#endif

/* 0x2C */
#if(DCM_SERVICE_2C_ENABLED==STD_ON)
CONST(Dcm_2C_ServiceInfoType, DCM_VARIABLE)  gDcmDsdSubService_2C[NUMBER_OF_DYN_DID]=
{
  {0xF300u,0x255u,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),(DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED},
  {0xF301u,0x255u,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),(DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED}
};
#endif
/* 0x2E */
#if(DCM_SERVICE_2E_ENABLED==STD_ON)
CONST(Dcm_2E_ServiceInfoType, DCM_VARIABLE)   gDcmDsdSubService_2E[NUMBER_OF_WRITE_DID]=   
{
	{0xFFFDu,1u,12u,  App_Write0xFFFD,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},
	{0xFFFBu,1u,23u,  App_Write0xFFFB,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},
	{0xF190u,1u,17u,  App_Write0xF190,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},
	{0xF198u,1u,16u,   App_Write0xF198,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},
	{0xF19Du,1u,4u,   App_Write0xF19D,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED},
	{0xF184u,1u,10u,  App_Write0xF184,DCM_SEC_LEV_L1, (DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_AND_FUNCTIONAL_REQ_SUPPORTED}
};
#endif

/* 0x2F */
#if(DCM_SERVICE_2F_ENABLED==STD_ON)
CONST(Dcm_2F_ServiceInfoType, DCM_VARIABLE)   gDcmDsdSubService_2F[NUMBER_OF_CONTROL_DID]=
{
    {0x8030u,(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),DCM_SESSION_EXTENDEDDIAGNOSTICSESSION,PHYSICAL_REQ_SUPPORTED,{2u,2u,2u},App_ReturnControlToEcu0x8030,DCM_NULL,DCM_NULL,App_ShortTermAdjustment0x8030,DCM_NULL}
};
#endif

/* 0x31 */                              
#if(DCM_SERVICE_31_ENABLED==STD_ON)

CONST(DcmDspRoutine, DCM_VARIABLE)  DcmDspRoutineIdentifierTable_31[NUMBER_OF_RID]=         
{
    {0x0202u,1u,0u,1u,AppstartRoutine0x0202,DCM_NULL,DCM_NULL,{{DCM_SEC_LEV_L1,(DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED},{0u},{0u},{0u},{0u},{0u}}}, 
    {0xFF02u,1u,0u,1u,AppstartRoutine0xFF02,DCM_NULL,DCM_NULL,{{(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),(DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED},{0u},{0u},{0u},{0u},{0u}}},
    {0xFF00u,1u,0u,1u,AppstartRoutine0xFF00,DCM_NULL,DCM_NULL,{{DCM_SEC_LEV_L1,(DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED},{0u},{0u},{0u},{0u},{0u}}}, 
    {0xFF01u,1u,0u,1u,AppstartRoutine0xFF01,DCM_NULL,DCM_NULL,{{(DCM_SEC_LEV_LOCK|DCM_SEC_LEV_L1),(DCM_SESSION_DEFAULTSESSION|DCM_SESSION_EXTENDEDDIAGNOSTICSESSION|DCM_SESSION_PROGRAMMINGSESSION),PHYSICAL_REQ_SUPPORTED},{0u},{0u},{0u},{0u},{0u}}},
};
#endif

